using System;
using System.Collections.Generic;
using System.Text;

using IDAL;
using Entities;

namespace Bll
{
    public class CompanyBll
    {
        public IList<CompanyInfo> GetAll()
        {
            ICompanyDAO iComp = (ICompanyDAO)AssemblyLoader.Load("CompanyDAO");
            return iComp.GetAll();
        }

        public bool Update(CompanyInfo comp)
        {
            ICompanyDAO iComp = (ICompanyDAO)AssemblyLoader.Load("CompanyDAO");
            return iComp.Update(comp);
        }

        public bool UpdateImage(string imagePath)
        {
            ICompanyDAO iComp = (ICompanyDAO)AssemblyLoader.Load("CompanyDAO");
            return iComp.UpdateImage(imagePath);
        }
    }
}
